


public class Test {
    public static void main(String[] agrs){
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();
        System.out.println("叶子个数:" + binaryTree.getLeafNodeCount1(root));
        System.out.println("第K层的结点个数:" + binaryTree.getKLevelNodeCount(root, 3));
        System.out.println("获取二叉树高度:" + binaryTree.getHeight(root));
        System.out.println("检测value值是否存在在:" + binaryTree.find(root, 'E').val);

    }
}
